package com.woniuxy.project.campus.canteenOrder.consumer;
import com.woniuxy.project.campus.AccountOpenFeign;
import com.woniuxy.project.campus.account.model.form.RedisKey;
import com.woniuxy.project.campus.canteenOrder.service.impl.OrderInfoServiceImpl;
import com.woniuxy.project.campus.util.Result;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.HashMap;

//@Component
public class DailySch {

//    @Resource
//    private AccountOpenFeign accountOpenFeign;
//    @Resource
//    private OrderInfoServiceImpl orderInfoService;
//    @Scheduled(cron = "0 0 0 * * ?") // 每天 00:00:00 执行一次
//    public void dailySch() throws Exception{
//        Result<HashMap<Object, Object>> hashMapAll = accountOpenFeign.getHashMapAll(RedisKey.orderSettlementKey("**", "**"));
//    }
}
